STEP 4: Let's make our random y-coordinate.

  • From drag in Random Integer indented INSIDE your loop.
  • Change the variable name from my_var to y.
  • Change the integer 1 inside the parentheses to -250 and the integer 10 to 250.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)